<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <style>
        body {
            font-family: Microsoft YaHei, Helvetica Neue, Helvetica, STHeiTi, Arial, sans-serif;
            font-size: 12px;
        }

        * {
            margin: 0;
            padding: 0;
        }

        ul {
            list-style-type: none; /*去掉图标*/
            width: 1220px;
            margin: 0 auto; /*居中*/
            background-color: #666;
            overflow: hidden;
            padding: 10px 0; /*添加上下的间距10个像素*/
        }

        li {
            width: 224px; /*(1220/5)=244 - 2*10=224*/
            margin: 0 10px; /*实现每个元素之间的间距*/
            background-color: white;
            float: left;
            border-radius: 5px;
            overflow: hidden; /*超出部分隐藏*/
        }

        img {
            width: 100%; /*上级li的宽度*/
        }

        .b_div {
            padding: 15px;
        }

        .b_div > a {
            height: 40px;
            display: block; /*为了修改宽高*/
            text-decoration: none;
            color: #333;
            font-size: 14px;
            line-height: 20px;
        }

        .free_span {
            color: #4f8dfe;
        }

        .count_span {
            color: #888;
            float: right;
        }

        .free_i {
            background-image: url("https://cdn.tmooc.cn/tmooc-web/css/img/state-free.png");
            width: 44px;
            height: 44px;
            position: absolute;
            top: 0;
            left: 0;
        }

        li {
            position: relative;/*做参照物*/

        }

        li:hover {
            bottom: 5px;box-shadow: 0 0 10px 5px red;
        }


    </style>
</head>
<body>
<ul>
    <li>
        <div class="t_div">
            <img src="https://cdn.tmooc.cn/bsfile//courseImg///f93f25fba0a84f72be47f5058f84a655.png" alt="">
        </div>
        <div class="b_div">
            <i class="free_i"></i>
            <a href="">Java高薪项目实战营</a>
            <div>
                <span class="free_span">免费</span>
                <span class="count_span">5,203报名</span>
            </div>
        </div>
    </li>
    <li>
        <div class="t_div">
            <img src="https://cdn.tmooc.cn/bsfile//courseImg///c875e07de3204bffb6f1964786bcb88c.jpg" alt="">
        </div>
        <div class="b_div">
            <a href="">Java高薪项目实战营</a>
            <div>
                <span class="free_span">免费</span>
                <span class="count_span">5,203报名</span>
            </div>
        </div>
    </li>
    <li>
        <div class="t_div">
            <img src="https://cdn.tmooc.cn/bsfile//courseImg///00c7d36bf7a24045950fbfcf9a7dc436.jpg" alt="">
        </div>
        <div class="b_div">
            <a href="">Java高薪项目实战营</a>
            <div>
                <span class="free_span">免费</span>
                <span class="count_span">5,203报名</span>
            </div>
        </div>
    </li>
    <li>
        <div class="t_div">
            <img src="https://cdn.tmooc.cn/bsfile//courseImg///e4298f14fbd946d2bf8d4ba399379dd0.jpg" alt="">
        </div>
        <div class="b_div">
            <a href="">Java高薪项目实战营</a>
            <div>
                <span class="free_span">免费</span>
                <span class="count_span">5,203报名</span>
            </div>
        </div>
    </li>
    <li>
        <div class="t_div">
            <img src="https://cdn.tmooc.cn/bsfile//courseImg///2a7f107a663148849af04f5985934186.jpg" alt="">
        </div>
        <div class="b_div">
            <a href="">Java高薪项目实战营</a>
            <div>
                <span class="free_span">免费</span>
                <span class="count_span">5,203报名</span>
            </div>
        </div>
    </li>

</ul>
</body>
</html>